package ooday02;

public class docther extends person{

    String title;
    docther(int age,String name, String address,String title){
        super(name,address,age);
        this.title=title;
    }

    void cut(){
        super.eat();
        super.sayhi();
        super.sleep();
        System.out.println("编号为"+title+name+"的医生正在给病人看病");
    }
}
